import { createStore } from 'vuex'

import mutations from './mutations'
import getters from './getters'
import actions from './actions'
const state = {
  user: {
    // 判断状态
    isLogin: window.localStorage.getItem('token') ? true : false
  },
  cartCount:0
}
export default createStore({
  state,
  mutations,
  actions,
  getters
})
